package com.nsn.das.midas.model.embedded;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class State {
	public static final String STATE_DRAFT = "DRAFT";
	public static final String STATE_PROPOSED = "PROPOSED";
	public static final String STATE_ACCEPTED = "ACCEPTED";
	public static final String STATE_DECLINED = "DECLINED";
	
	public State() {}
	
	@Column(name="state",length=20)
	private String description;
	
	public State(String state){
		this.description = state;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	public static State getInstance(String description){
		State state = new State(description);
		return state;
	}
}
